<template>
  <div class="page-search">
    <cc-form v-bind="searchFormConfig" v-model="formData">
      <template #header>
        <h1>高级检索</h1>
      </template>
      <template #footer>
        <div class="handle-btns">
          <el-button type="primary"
            ><el-icon class="el-icon--left"><Search /></el-icon>搜索</el-button
          >
          <el-button
            ><el-icon class="el-icon--left"><refresh-left /></el-icon
            >重置</el-button
          >
        </div>
      </template>
    </cc-form>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import { CcForm } from '@/base-ui/form'

export default defineComponent({
  components: { CcForm },
  props: {
    searchFormConfig: {
      type: Object,
      required: true
    }
  },
  setup() {
    const formData = ref({
      id: '',
      name: '',
      password: '',
      sport: '',
      createTime: ''
    })
    return { formData }
  }
})
</script>
<style scoped lang="less">
.handle-btns {
  text-align: right;
  padding: 0 50px 20px 0;
}
</style>
